//
//  IntroOneCell.m
//  BeautyClother
//
//  Created by dllo on 15/9/29.
//  Copyright (c) 2015年 宋爽. All rights reserved.
//

#import "IntroOneCell.h"

@implementation IntroOneCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.price = [[UILabel alloc] init];
        [self.contentView addSubview:_price];
        [_price release];
        
        self.desc = [[UILabel alloc] init];
        [self.contentView addSubview:_desc];
        [_desc release];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    CGFloat offwidth = [UIScreen mainScreen].bounds.size.width / 375;
    
    self.price.frame = CGRectMake(5, 5, 80 * offwidth, self.contentView.frame.size.height - 10);
    self.price.textColor = [UIColor purpleColor];
    self.price.font = [UIFont boldSystemFontOfSize:18];
    
    self.desc.frame = CGRectMake(90 * offwidth, 5, 280 * offwidth, self.contentView.frame.size.height - 10);
    self.desc.font = [UIFont systemFontOfSize:13];
    self.desc.numberOfLines = 3;
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
